﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using creditCalculator;

namespace CreditCalculator3Test
{
    [TestClass]
    public class CreditCalculator3Test
    {
        // unit test code
        [TestMethod]
        public void Debit_WithValidAmount_UpdatesBalance()
        {
            // arrange
            int year = 2015; // --------
            //   int month = IOHelpers.ReadIntFromConsole("Enter the month number:", 1, 12);
            int month = 1; // --------------
            //   int day = IOHelpers.ReadIntFromConsole("Enter the day:", 1, 31);
            int day = 5;
            DateTime template = new DateTime(year, month, day);

            // act
            CurrentPayment StringOfTable = new CurrentPayment();
            StringOfTable.startDate = StringOfTable.ReadDateFromConsole("Please enter date of receiving of the credit");


            // assert
            Assert.AreEqual(template, StringOfTable.startDate);
        }
    }
}
